<table cellpadding="5">
	<input name="id" type="hidden" value="${(cmsVentureServiceAreaItem.id)!}" />
	<tr>
		<td class="tbLabel">所属类型:</td>
		<td>
			<@eu.comboBox name="areaType" url="common.do?loadComboBox&key=CMS_AREA_TYPE&value=${(cmsVentureServiceAreaItem.areaType)!}" />
		</td>
		<td class="tbLabel">名称:</td>
		<td>
			<input name="name"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsVentureServiceAreaItem.name)!}"/>
		</td>
		<td class="tbLabel">所属城市:</td>
		<td>
			<@eu.comboBox name="locationCode" url="common.do?loadComboBox&key=MATCH_AREA_CODE&value=${(cmsVentureServiceAreaItem.locationCode)!}" />
		</td>
		
	</tr>
	<tr>
		<td class="tbLabel">地址:</td>
		<td>
			<input name="locationName"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsVentureServiceAreaItem.locationName)!}"/>
		</td>
		<td class="tbLabel">图片路径:</td>
		<td colspan="3">
			<input id="cmsAreaImgUrl" name="imgUrl" type="hidden"  value="${(cmsVentureServiceAreaItem.imgUrl)!}"/>
			<div>
				<span id="uploadCmsAreaImg"></span>
				<span id="uploadCmsAreaImgShow">
				<#if cmsVentureServiceAreaItem??>
				<img src="${(cmsVentureServiceAreaItem.imgUrl)!}" width="260" height="160"/>
				</#if>	
				</span>
			</div>
            <span style="display:none">
            	<input id="uploadCmsAreaImgCancel" type="button" value="取消全部上传" onclick="swfu.cancelQueue();" disabled="disabled" style="margin-left: 2px; font-size: 8pt; height: 22px;" />
           	</span>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">联系人:</td>
		<td>
			<input name="linker"  class="easyui-validatebox textbox" data-options="required: true" value="${(cmsVentureServiceAreaItem.linker)!}"/>
		</td>
		<td class="tbLabel">联系电话:</td>
		<td>
			<input name="tel"  class="easyui-validatebox textbox" data-options="required: true" value="${(cmsVentureServiceAreaItem.tel)!}"/>
		</td>
		<td class="tbLabel">友情链接:</td>
		<td>
			<input name="hrefUrl"  class="easyui-validatebox textbox" data-options="required: false" value="${(cmsVentureServiceAreaItem.hrefUrl)!}"/>
		</td>
	</tr>
	<tr>
		<td class="tbLabel">简介:</td>
		<td colspan="5">
			<textarea rows="10" cols="100" name="serviceDesc">${(cmsVentureServiceAreaItem.serviceDesc)!}</textarea>
		</td>
	</tr>
	
</table>

<<script type="text/javascript">
var swfInstrPhoto = new SWFUpload({
	flash_url : "static/plugins/swfupload/swfupload.swf",
   upload_url: "common.do?uploadFile",
   file_post_name:"filedata",
   post_params: {"name" : "zwm"},
   use_query_string:true,
    file_size_limit : "10 MB",
       file_types : "*.jpg;*.gif;*.png;*.bmp",    //这是全部文件都可以上传，如果要限制只有某些文件上传，则可以这么写 file_types : "*.jpg;*.gif;*.png",
       file_types_description : "图片",
//        file_upload_limit : 1,
       file_queue_limit : 0,
       custom_settings : {
           progressTarget : "fsUploadProgress",
           cancelButtonId : "uploadCmsAreaImgCancel"
       },

       button_image_url : "static/plugins/swfupload/swfbtn.png",
 		button_placeholder_id : "uploadCmsAreaImg",
 		button_text: "<span class='abtn'>上传图片</span>",
 		button_window_mode:"transparent",
 		button_width: 80,
 		button_height: 24,
 		button_text_left_padding: 22,
 		button_text_top_padding: 2,
       // The event handler functions are defined in handlers.js
       file_queued_handler : fileQueued,
       file_queue_error_handler : fileQueueError,
       file_dialog_complete_handler : fileDialogComplete,
       upload_error_handler : uploadError,
       upload_success_handler : uploadCmsAreaImgSuccess,
       upload_complete_handler : uploadComplete,
       queue_complete_handler : queueComplete    // Queue plugin event
});

function uploadCmsAreaImgSuccess(file,rs) {
	 
	  var json = eval('(' + rs + ')');
	  $('#uploadCmsAreaImgShow').html('<img src="'+json.obj+'" width="260" height="160"/>');	
	  $('#cmsAreaImgUrl').val(json.obj);
	}
</script>
